package com.example.zhiran.pojo.option.useroption;

/**
 * @author :no-bald-chen
 * 用户操作返回信息message
 * messageCode range 101~199
 */
public enum UserOptionMessage {

    /**
     * 登录成功
     */
    LOGIN_SUCCESS_MSG(101,"login_success"),

    /**
     * 用户名、手机号不存在
     */
    LOGIN_NON_EXISTENT_MSG(102,"login_non_existent"),

    /**
     * 登录密码错误
     */
    LOGIN_PASSWORD_INCORRECT_MSG(103,"login_password_incorrect"),

    /**
     * 注册成功
     */
    SIGNUP_SUCCESS_MSG(111,"signup_success"),

    /**
     * 昵称被占用
     */
    NICKNAME_OCCUPIED_MSG(112,"nickname_occupied"),

    /**
     * 昵称可注册
     */
    NICKNAME_AVAILABLE_MSG(113,"nickname_available"),

    /**
     * 电话号码已注册
     */
    SIGNUP_TELEPHONE_OCCUPIED_MSG(114,"signup_telephone_occupied"),

    /**
     * 电话号码可注册
     */
    SIGNUP_TELEPHONE_AVAILABLE_MSG(115,"signup_telephone_available"),

    /**
     * 修改信息成功
     */
    UPDATE_SUCCESS_MSG(116,"update_success");

    private int messageCode;
    private String message;

    UserOptionMessage(int messageCode, String message) {
        this.messageCode = messageCode;
        this.message = message;
    }

    public int getMessageCode() {
        return messageCode;
    }

    public String getMessage() {
        return message;
    }
}
